package nl.haemers.form 
{
	import flash.events.EventDispatcher;
	/**
	 * ...
	 * @author Jonathan Haemers
	 */
	public class FormValidator extends EventDispatcher
	{
		protected var formFields			:Array;
		
		public function FormValidator() 
		{
			
		}
		
		/** Public methods **/
		public function addFormField(formField:Object) 
		{
			if (!formFields)
			{
				formFields = new Array();
			}
			
			formFields.push(formField)
		}
		
		public function validateForm() : Boolean
		{
			
			for (var i:int = 0; i < formFields.length; i++)
			{
				
			}
		}
		
		
		/** Getters & Setters **/
		
		/** Protected methods **/
		
		/** Private methods ***/
		
	}

}